package com.tykhome.evernote.evernote2kindle.util;

public class Utils {
	public static String toHexString(byte[] bytes) {
		StringBuilder sb = new StringBuilder();
		for (byte b : bytes) {
			int extended = (b | 0x100) & 0x1ff;
			sb.append(Integer.toHexString(extended).toUpperCase().substring(1));
		}
		return sb.toString();
	}
}
